1: | f(0) | → true | |
2: | f(1) | → false | |
3: | f(s(x)) | → f(x) | |
4: | if(true,s(x),s(y)) | → s(x) | |
5: | if(false,s(x),s(y)) | → s(y) | |
6: | g(x,c(y)) | → c(g(x,y)) | |
7: | g(x,c(y)) | → g(x,if(f(x),c(g(s(x),y)),c(y))) | |
8: | F(s(x)) | → F(x) | |
9: | G(x,c(y)) | → G(x,y) | |
10: | G(x,c(y)) | → G(x,if(f(x),c(g(s(x),y)),c(y))) | |
11: | G(x,c(y)) | → IF(f(x),c(g(s(x),y)),c(y)) | |
12: | G(x,c(y)) | → F(x) | |
13: | G(x,c(y)) | → G(s(x),y) | |